package com.example.appxi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class IntroActivity extends Activity{
	Handler h;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash);
		h = new Handler();
		h.postDelayed(irun, 500);
	}
	
	Runnable irun = new Runnable() {
		public void run(){
			Intent i = new Intent(IntroActivity.this,MainActivity.class);
			startActivity(i);
			finish();
			
			overridePendingTransition(android.R.anim.fade_in,android.R.anim.fade_out);
		}
		};
	
	public void onBackPressed() {
		super.onBackPressed();
		h.removeCallbacks(irun);
	}
}